import { request,BASEURL} from '../../utils/request';
Page({

  /**
   * 页面的初始数据
   */
  data: {
    stateList:{}
  },

  onLoad: function (options) {
    this.stateList()
  },
// 隐私协议数据
  async stateList(){
    // let {openid} = wx.getStorageSync('uid')
    let res = await request({
      url: '/api/Wxapp/textContent',
      method:"POST",
      data:{
        type:3
      }
    })
    console.log(res)
    let stateList = res.data.data
    this.setData({
      stateList,
      BASEURL
    })
  },




  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    let {openid} = wx.getStorageSync('uid')
    return {
      title: "邀请好友",
      path:`/pages/index/index?pid=${openid}` 
    }
  }
})